/*
 * Copyright (c) 2018 maoyan.com
 * All rights reserved.
 *
 */
package com.darren.euc.entity;

import org.joda.time.DateTime;

import java.io.Serializable;

/**
 * 在这里编写类的功能描述
 *
 * @author fangwenhao
 * @created 2018/3/14
 */
public class ActivityDTO implements Serializable {

    private Long activity_id;

    private String title;

    private String src;

    private String address;

    private String time;

    private Integer status;

    public ActivityDTO(){}

    public ActivityDTO(Activity activity){
        this.activity_id = activity.getId();
        this.title = activity.getTitle();
        this.src = activity.getUrl();
        this.address = activity.getAddress();
        this.time = new DateTime(activity.getBeginTime()).toString("yyyy-MM-dd");
        this.status = activity.getStatus();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getActivity_id() {
        return activity_id;
    }

    public void setActivity_id(Long activity_id) {
        this.activity_id = activity_id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSrc() {
        return src;
    }

    public void setSrc(String src) {
        this.src = src;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }
}
